/**
 * 作者:hanbo
 * 日期:2018/11/2116:43
 * 描述:
 */
let EXTENDS_3857 =20037508.3427892;
/**
 * 各等级比例尺分母
 * @type {{LEVEL_0: number, LEVEL_1: number, LEVEL_2: number, LEVEL_3: number, LEVEL_4: number, LEVEL_5: number, LEVEL_6: number, LEVEL_7: number, LEVEL_8: number, LEVEL_9: number, LEVEL_10: number, LEVEL_11: number, LEVEL_12: number, LEVEL_13: number, LEVEL_14: number, LEVEL_15: number, LEVEL_16: number, LEVEL_17: number, LEVEL_18: number, LEVEL_19: number}}
 */
let SCALE={
    LEVEL_0:20000000,
    LEVEL_1:10000000,
    LEVEL_2:5000000,
    LEVEL_3:2000000,
    LEVEL_4:1000000,
    LEVEL_5:500000,
    LEVEL_6:200000,
    LEVEL_7:100000,
    LEVEL_8:50000,
    LEVEL_9:25000,
    LEVEL_10:20000,
    LEVEL_11:10000,
    LEVEL_12:5000,
    LEVEL_13:2000,
    LEVEL_14:1000,
    LEVEL_15:500,
    LEVEL_16:200,
    LEVEL_17:100,
    LEVEL_18:50,
    LEVEL_19:20,
};

let SCALE_GOOGLE={
    LEVEL_0:800000000,
    LEVEL_1:400000000,
    LEVEL_2:200000000,
    LEVEL_3:100000000,
    LEVEL_4:50000000,
    LEVEL_5:25000000,
    LEVEL_6:12000000,
    LEVEL_7:6000000,
    LEVEL_8:1600000,
    LEVEL_9:1550000,
    LEVEL_10:800000,
    LEVEL_11:400000,
    LEVEL_12:200000,
    LEVEL_13:100000,
    LEVEL_14:50000,
    LEVEL_15:25000,
    LEVEL_16:12000,
    LEVEL_17:6000,
    LEVEL_18:3000,
    LEVEL_19:1500,
    LEVEL_20:800,
};

let SCALE_CUSTOM={
    LEVEL_0:573000000,
    LEVEL_1:273000000,
    LEVEL_2:150000000,
    LEVEL_3:77000000,
    LEVEL_4:30000000,
    LEVEL_5:15000000,
    LEVEL_6:7500000,
    LEVEL_7:3800000,
    LEVEL_8:1600000,
    LEVEL_9:800000,
    LEVEL_10:400000,
    LEVEL_11:200000,
    LEVEL_12:100000,
    LEVEL_13:50000,
    LEVEL_14:25000,
    LEVEL_15:12000,
    LEVEL_16:6000,
    LEVEL_17:3000,
    LEVEL_18:1500,
    LEVEL_19:800
};
let ZOOM_RADIO=1;//地图缩放速率
/**
 * 根据地图等级获取比例尺
 * @param level {number} 地图等级
 */
let  getLevelDenominator=function (level) {
    return SCALE_CUSTOM["LEVEL_"+level];
};


export {EXTENDS_3857,SCALE,ZOOM_RADIO,SCALE_GOOGLE,SCALE_CUSTOM,getLevelDenominator}